package com.leyou.order.inter.pojo;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * @数表名称 tb_order_status
 * @开发日期 2020-03-05
 */
@Data
@Table(name="tb_order_status")
public class OrderStatus implements Serializable {
    
    /** 订单id (主健ID) */
    @Id
    @Column(name="order_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long orderId;

    /** 状态：1、未付款 2、已付款,未发货 3、已发货,未确认 4、交易成功 5、交易关闭 6、已评价 */
    @Column(name="status")
    private Integer status;

    /** 订单创建时间 */
    @Column(name="create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /** 付款时间 */
    @Column(name="payment_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date paymentTime;

    /** 发货时间 */
    @Column(name="consign_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date consignTime;

    /** 交易完成时间 */
    @Column(name="end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;

    /** 交易关闭时间 */
    @Column(name="close_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date closeTime;

    /** 评价时间 */
    @Column(name="comment_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date commentTime;

    private static final long serialVersionUID = 1L;
}